#!/usr/bin/python -S
"""
tpe_lex_test.py: Tests for tpe_lex.py
"""

from pprint import pprint
import unittest

import tpe_lex  # module under test


class LexerTest(unittest.TestCase):

  def testLexer(self):
    lex = tpe_lex.GetLexer()
    print lex
    e = open('annex/tpe.tpe').read()
    result = lex.run(e)
    pprint(list(result))


if __name__ == '__main__':
  unittest.main()
